package com.aspose.cells;

import java.util.Iterator;

class zja extends CollectionBase {
   private Chart b;

   zja(Chart var1) {
      this.b = var1;
   }

   Chart a() {
      return this.b;
   }

   public ziz a(int var1) {
      return (ziz)this.a.get(var1);
   }

   ziz b(int var1) {
      if (var1 >= this.getCount()) {
         for(int var2 = this.getCount(); var2 <= var1; ++var2) {
            ziz var3 = new ziz(this);
            com.aspose.cells.b.a.a.ze.a(this.a, (Object)var3);
         }
      }

      return this.a(var1);
   }

   int a(ziz var1) {
      if (!var1.m()) {
         for(int var2 = 0; var2 < this.a.size(); ++var2) {
            ziz var3 = (ziz)this.a.get(var2);
            if (var3.m()) {
               this.a.add(var2, var1);
               return this.getCount() - 1;
            }
         }
      }

      com.aspose.cells.b.a.a.ze.a(this.a, (Object)var1);
      return this.getCount() - 1;
   }

   int b(ziz var1) {
      com.aspose.cells.b.a.a.ze.a(this.a, (Object)var1);
      return this.getCount() - 1;
   }

   boolean b() {
      Iterator var1 = this.iterator();

      ziz var2;
      do {
         if (!var1.hasNext()) {
            return false;
         }

         var2 = (ziz)var1.next();
      } while(!var2.m());

      return true;
   }

   ziz a(boolean var1) {
      Iterator var2 = this.iterator();

      ziz var3;
      do {
         if (!var2.hasNext()) {
            return null;
         }

         var3 = (ziz)var2.next();
      } while(var3.m() != var1);

      return var3;
   }

   void c(ziz var1) {
      this.a.remove(var1);
   }

   // $FF: synthetic method
   public Object get(int x0) {
      return this.a(x0);
   }
}
